﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="CRM.Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="Web_CSS/WebCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="JavaScript/Jquery.js"></script>
    <script type="text/javascript" src="JavaScript/ManageWeb.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <!--顶层标签，这个标签用CSS控制高度-->
    <div class="TopBack">
        <div class="TopMes">
        <!--打开或关闭菜单的图片链接，使用jQuery语句控制事件-->
        <img src="Images/left.jpg" title="关闭菜单.." id="CloseMenu"/>&nbsp;
        <img src="Images/right.jpg"  title="展开菜单.." id="OpenMenu"/>&nbsp;
        <!--显示用户名与角色-->
        祝你工作愉快：
        <%=Common.EncryptString.DeMyEnncrypt
        (Common.GetMes.GetCookies("User_Name"),6)%>
        <font color=red>
        [<%=Common.EncryptString.DeMyEnncrypt
         (Common.GetMes.GetCookies("Power_Name"),6).Trim()%>]
        </font>&nbsp;
        <!--显示目标链接，将target指定为框架集中名为main的框架-->
        <a href="UpdatePass.aspx" target="main" 
           style="color:#fff;">[修改密码]</a>&nbsp;&nbsp;
        <a href="Body.aspx" target="main" 
           style="color:#fff;">[办公桌]</a>&nbsp;&nbsp;
        <!--定义退出按钮，关联客户端事件与服务器端事件-->
        <asp:LinkButton ID="LBQuit" runat="server" 
             Font-Bold="True" ForeColor="White" 
            onclick="LBQuit_Click" 
            OnClientClick='return confirm("你确定退出管理系统吗？") '>[退出]
        </asp:LinkButton>
        </div>
    </div>
    </form>
</body>
</html>
